package light.head.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 首页广告图片
 */
@Entity
@Table
public class IndexAdvertisingAnnex implements Serializable{

	private static final long serialVersionUID = -1791628085947427074L;
	private Integer code; 							// 流水号
	private Integer iac; 							// 一对多
	private String name; 							// 文件名
	private String sn; 								// 系统生成的文件名
	private Integer size; 							// 文件大小
	private String ext; 							// 后缀名
	private boolean cover; 							// 封面
	private boolean deleted; 						// 是否删除

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}

	@Column
	public Integer getIac() {
		return iac;
	}

	@Column
	public String getName() {
		return name;
	}

	@Column
	public String getSn() {
		return sn;
	}

	@Column
	public Integer getSize() {
		return size;
	}

	@Column
	public String getExt() {
		return ext;
	}

	@Column
	public boolean isCover() {
		return cover;
	}

	@Column
	public boolean isDeleted() {
		return deleted;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public void setIac(Integer iac) {
		this.iac = iac;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public void setCover(boolean cover) {
		this.cover = cover;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
}
